<?php
namespace App\Http\Controllers\admin\goods;
use Illuminate\Http\Request;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/25
 * Time: 15:55
 */
class GoodsController extends \App\Http\Controllers\Controller
{
    protected $logic;
    public function __construct()
    {
        $this->logic = new \App\Model\service\admin\GoodsLogic();
    }

    public function index(Request $request){
        $data = $request->input();
        $rst = $this->logic->listGoods($data);
        return response()->json($rst,$rst['status']);
    }
}